package com.wuxiaoqin.admin.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2021-11-08
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Commodity对象", description="")
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "C_id", type = IdType.AUTO)
    private Integer cId;

    @TableField("C_name")
    private String cName;

    @TableField("C_firstClass")
    private Integer cFirstclass;

    @TableField("C_secondClass")
    private Integer cSecondclass;

    @ApiModelProperty(value = "总长度8位，小数部分2位，整数部分6位")
    @TableField("C_price")
    private BigDecimal cPrice;

    @ApiModelProperty(value = "销售数量")
    @TableField("C_salesVolumes")
    private Integer cSalesvolumes;

    @TableField("C_img")
    private String cImg;

    @TableField("C_describe")
    private String cDescribe;

    @ApiModelProperty(value = "是否上架")
    @TableField("C_state")
    private Integer cState;

    @TableField("C_createtime")
    private LocalDateTime cCreatetime;


}
